package com.project.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Workers {
    private String workerName;
    private  int workerAge;
    private String workerJob;

    public String getWorkerName() {
        return workerName;
    }

    public void setWorkerName(String workerName) {
        this.workerName = workerName;
    }

    public int getWorkerAge() {
        return workerAge;
    }

    public void setWorkerAge(int workerAge) {
        this.workerAge = workerAge;
    }

    public String getWorkerJob() {
        return workerJob;
    }

    public void setWorkerJob(String workerJob) {
        this.workerJob = workerJob;
    }

    @Override
    public String toString() {
        return "Worker{" +
                "workerName='" + workerName + '\'' +
                ", workerAge=" + workerAge +
                ", workerJob='" + workerJob + '\'' +
                '}';
    }
}
